#include "helix.h"

const float Helix::rotationSpeed = 4.0f;

Helix::Helix(const ObjectModelPtr& model)
	:	SceneObject(model){
	this->theta=0;
}

Helix::~Helix(){

}


void Helix::setModelMatrix(){
	this->getParent().setSubModelMatrix();

	glTranslatef(0,-0.11f,0.12f);
	glRotatef(theta*180/PI,0,0,1);
	glScalef(1.0f,1.0f,1.0f);
}

void Helix::timeStep(){
	this->theta+=Helix::rotationSpeed;
}

